yuan={'网络系':['网络安全专业','信息管理专业'],'外语系':['日语专业','英语专业']};

def foreach(ming):
	if(ming=='网络系' or ming=='外语系'):
		for x in yuan[ming]:
			print(x);
	if(ming=='华软'):
		for key in yuan.keys():
			for x in yuan[key]:
				print(x);
ming=input('请输入 华软、网络系或外语系：');
foreach(ming);